﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using TarreOA.TarreOAModels;
using TarreOA.TarreOABLL;

public partial class Flow_Info_FindToNextUsers : System.Web.UI.Page {
    protected void Page_Load(object sender, EventArgs e) {
        string flow_id = Request.Form.Get("FL_ID");
        string step_sort = Request.Form.Get("ST_SO");
        string work_id = Request.Form.Get("WR_ID");
        int next_step = int.Parse(Request.Form.Get("NT_ST"));
        Flow_NewFlowStep_Service fnfs_service = new Flow_NewFlowStep_Service();
        Hashtable ht = fnfs_service.FindNextUsers(int.Parse(flow_id), next_step);
        Session["NEXT_USERS"] = ht;
        Session["NEXT_STEP"] = next_step;
        Response.Redirect("WorkToNext.aspx?FLOW_ID=" + flow_id + "&ST_SO=" + step_sort + "&WO_ID=" + work_id);
    }
}
